﻿using Newtonsoft.Json;
using SqlSugar;
using System.Collections.Generic;

namespace NetMicro.Domains
{
    /// <summary>
    /// 数据库配置
    /// </summary>
    public class DbOptions
    {
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string DbName { get; set; }
        /// <summary>
        /// 数据库类型
        /// </summary>
        public DbType DbType { get; set; } = DbType.MySql;

        /// <summary>
        /// 数据库连接
        /// </summary>
        public string ConnectionString { get; set; }
        /// <summary>
        /// 从库
        /// </summary>
        public List<SlaveConnectionConfig> SlaveConnectionConfigs { get; set; }


        [JsonIgnore]
        public AopEvents AopEvents { get; set; }
    }
}
